<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<form action="encodeKeyword.jsp" method="post">
	请输入搜寻关键字：<input type="text" name="keyword"/>
	<input type="submit" value="送出"/>
</form>
<%
	String keyword = request.getParameter("keyword");
	if ( StringUtils.isNotBlank(keyword) ){ 
		keyword = URLEncoder.encode(keyword,"UTF-8");
		out.println("编码后的url：" + ServerValue.getFrontHostname() + ServerValue.getFrontContextPath() + "/search/search.do?searchKeyword=" + keyword);
	}
	
%>